<template>
    <div class="boxbox">
        <div class="hello">
          
        <el-button class="num1">
            企业名称
        <el-icon><ArrowDown /></el-icon></el-button>
        <el-input
        v-model="input2"
        class="w-50 m-2"
        placeholder="请输入需要查询的核心企业名称"
        :prefix-icon="Search"
        />  
        <el-select v-model="value" class="m-2" placeholder="全部" size="small">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    />
  </el-select>
  <el-button class="cha" type="primary" @click="chaxun(input2)">查询</el-button>
  <el-button class="chong">重置</el-button>
  <el-button class="dao">导出</el-button>
  <el-button class="xin">+新增</el-button>
        </div>

        <div class="weiba">
            <el-table class="tou" :data="Parameters" stripe style="width:100%; " >
          <el-table-column prop="caCreditapprovalid" label="序号">
          <template #default="scope">
            
          </template>
        </el-table-column>
        <el-table-column prop="caCreditauditors" label="企业名称">
          <template #default="scope">

          </template>
        </el-table-column>
        <el-table-column prop="caCreditstarttime" label="社会信用代码">
          <template #default="scope">
           
          </template>
        </el-table-column>
        <el-table-column prop="" label="资金">
          <template #default="scope">
           
          </template>
        </el-table-column>
        <el-table-column prop="caCreditpers" label="用户">
          <template #default="scope">
           
          </template>
        </el-table-column>
        <el-table-column prop="caCreditstatus" label="流程状态">
         
        </el-table-column>
        <el-table-column prop="" label="操作">
         
          
        </el-table-column>
      </el-table>
        </div>
    </div>
    <Tan v-if="boolobox" class="chuu"></Tan>
</template>

<script setup>
import serviceAxios from '@/apis/index'
import { onMounted, ref } from 'vue'
import { Search } from '@element-plus/icons-vue'
import {useRouter} from 'vue-router'
  
  var router = useRouter();
const input2 = ref()
const Parameters = ref();

//获取列表
//核心企业授信申请
onMounted( 
  async() => {
    var res = await serviceAxios.gjc.My_caCreditapproval();
  
    Parameters.value = res.data.data
    console.log(res.data.data);
  })

//查寻
var chaxun=async(input2)=>{
  console.log(input2);
  var res = await serviceAxios.gjc.My_caCreditapprovalcha({caCreditauditors:input2});
    Parameters.value=res.data.data;
            }
  


</script>

<style scoped>
.boxbox{
    width: 100%;
    height: 100%;
    background-color: #fafafa;
}
.boxbox .top{
    width: 180px;
    height:28px;
    background-color: rgba(75, 167, 254, 1);
    border-radius: 25px;
}
.boxbox .top p {
    line-height: 28px;
    text-align: center;
    font-weight: bold;
  color: white;
}
.hello{
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
}
.hello .num1{
    border:none;
    width: 80px;
    height: 28px;
    font-size: 12px;
    font-weight: 200;
    margin-left: 50px;   
    margin-right: 20px;
}
.hello .el-input{
    width: 250px;
    height: 28px;
    font-size: 12px;
    font-weight: 200;
    margin-right: 20px;
}
.hello .el-select{
    margin-top: 3px;
    width: 80px;
    height: 28px;
    margin-right: 20px;
}
.hello .cha{
    width: 50px;
    height: 28px;
    font-size: 12px;
    /* margin-right: 20px; */
}

.hello .chong{
    width: 50px;
    height: 28px;
    font-size: 12px;
    font-weight: 200;
    color:  rgba(75, 167, 254, 1);
}
.weiba{
    width: 80%;
    margin: auto;
    font-size: 12px;
}


:deep(.el-table td.el-table__cell div) {
  display: flex;
  margin-left: -10px;
  
}
.weiba .el-button{
border: none;
}
.chuu{
  position: absolute;
  z-index: 10;
  top: 70px;
  left: 230px;
}
.hello .dao{
    width: 50px;
    height: 28px;
    font-size: 12px;
    font-weight: 200;
    margin-left: 300px;
    border: 1px solid rgba(75, 167, 254, 1);
    color:  rgba(75, 167, 254, 1);
}
.hello .xin{
    width: 50px;
    height: 28px;
    font-size: 12px;
    font-weight: 200;
    border: 1px solid  rgba(75, 167, 254, 1);
    color:  rgba(75, 167, 254, 1);
}

</style>